// const { method } = require('@/utils/request/request')
import { method } from "@/utils/request/method"
const { get, post, dele } = method

// 游客登录
export const LoginByWechat = params => post('/lhfp-auth-service/auth/loginByWechat', params)
// 广告部分
export const GetAdvertisementList = params => post('/lhfp-serpersonnel-service/advertisement/getAdvertisementList', params)
// 绑定手机号
export const BindPhone = params => post('/lhfp-auth-service/user/bindPhone', params)
// 修改用户信息
export const BindInfo = params => post('/lhfp-auth-service/user/bindInfo', params)
// 获取用户信息
export const UserInfo = params => get('/lhfp-auth-service/auth/info', params)
// 获取用户账户详情信息
export const WalletRecordPage = params => post('/lhfp-user-service/walletRecords/walletRecordPage', params)
// 获取过期便利豆
export const GetBeansExpire = params => post('/lhfp-user-service/beansExpire/getBeansExpire', params)
// 获取二维码信息
export const GetQrCodeById = params => post('/lhfp-serpersonnel-service/qrCode/getQrCodeById', params)
// 添加申请信息
export const ApplyTableAdd = params => post('/lhfp-serpersonnel-service/applyTable/add', params)
// 审核轮播
export const GetMainImgs = params => get('/lhfp-serpersonnel-service/applyTable/getMainImgs', params)
// 申请信息
export const GetInfoById = params => get('/lhfp-serpersonnel-service/applyTable/getInfoById', params)

// 获取快递下单通用参数
export const GetexpressOrderDetailInfo = params => post('/lhfp-user-service/orderInfo/getexpressOrderDetailInfo', params)
// 获取计价规则计算金额
export const PricingRuleCalculation = params => post('/lhfp-serpersonnel-service/pricingRules/pricingRuleCalculation', params)
// 取件下单
export const PickupPkgOrder = params => post('/lhfp-user-service/orderInfo/payOrder', params)
// 订单支付
export const PayByOrder = params => post('/lhfp-user-service/orderInfo/payByOrder', params)

// 代买商品下单
export const CreateOrder = params => post('/lhfp-serpersonnel-service/purchaseOrder/createOrder', params)
// 配送首页获取信息
export const GetIndexExpress = params => post('/lhfp-serpersonnel-service/index/getIndexExpress', params)
// 购物车的添加修改
export const AddUpdGoodsCart = params => post('/lhfp-merchant-service/goodsCart/addUpdGoodsCart', params)
// 获取购物车信息
export const GoodsCartStatis = params => post('/lhfp-merchant-service/goodsCart/goodsCartStatis', params)
// 购物车下单
export const PayGoodsOrder = params => post('/lhfp-merchant-service/goodsInfo/payGoodsOrder', params)
// 获取商品详情
export const GetGoodsInfoByIds = params => post('/lhfp-merchant-service/goodsInfo/getGoodsInfoByIds', params)

// 订单详情
export const ExpressOrderDetail = params => post('/lhfp-user-service/orderInfo/expressOrderDetail', params)
// 用户取消订单
export const CancelOrder = params => post('/lhfp-user-service/orderInfo/cancelOrder', params)
// 获取快递订单列表
export const GetOrderList = params => post('/lhfp-user-service/orderInfo/getOrderList', params)

// 获取已开放小区
export const GetCommunityList = params => post('/lhfp-serpersonnel-service/community/getCommunityList', params)
// 获取开放小区分页列表
export const PageList = params => post('/lhfp-serpersonnel-service/community/pageList', params)
// 用户绑定小区
export const UserBindingCommunity = params => post('/lhfp-serpersonnel-service/community/userBindingCommunity', params)
// 根据小区ID查询小区信息
export const GetCommunityById = params => post('/lhfp-serpersonnel-service/community/getCommunityById', params)
// 获取单个默认地址
export const GetAddressInfoDefault = params => post('/lhfp-user-service/addressInfo/getAddressInfoDefault', params)
// 添加/修改
export const AddorupdAddressInfos = params => post('/lhfp-user-service/addressInfo/addorupdAddressInfos', params)
// 地址列表
export const GetAddressInfoList = params => post('/lhfp-user-service/addressInfo/getAddressInfoList', params)
// 根据地址ID获取地址信息
export const GetAddressInfoById = params => post('/lhfp-user-service/addressInfo/getAddressInfoById', params)
// 根据地址id删除地址
export const DelAddressInfoById = params => post('/lhfp-user-service/addressInfo/delAddressInfoById', params)
// 获取常用地址
export const GetCommonAddress = params => post('/lhfp-user-service/addressInfo/getCommonAddress', params)
// 根据小区id获取绑定站点信息
export const GetSiteList = params => post('/lhfp-serpersonnel-service/site/getSiteList', params)

// 加油站
// 获取油号列表
export const GetOilCode = params => get('/lhfp-service-oil/oilOil/getOilCode', params)
// 获取分页列表
export const PageStations = params => post('/lhfp-service-oil/oilStations/pageStations', params)
// 获取油站信息
export const GetInfoByStations = params => post('/lhfp-service-oil/oilStations/getInfoByStations', params)
// 计算支付价格
export const SumAmount = params => post('/lhfp-service-oil/oilStations/sumAmount', params)

// 公共功能
// 上传图片
export const MyUpload = '/lhfp-user-service/file/fileUpload'

// 线上静态资源
export const OnlineStatic = 'https://linghuo-app.oss-cn-chengdu.aliyuncs.com/app-img/project-c/'
